package com.urea.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 轮播图对象 t_banner
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_file_info")
@Data
@ToString
public class FileInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty( "名称")
    private String name;

    /** 大小 */
    @Excel(name = "大小")
    @ApiModelProperty( "大小")
    private Long size;

    /** 路径 */
    @Excel(name = "路径")
    @ApiModelProperty( "路径")
    private String path;

    @Excel(name = "扩展名")
    @ApiModelProperty( "扩展名")
    private String ext;

    @Excel(name = "类型")
    @ApiModelProperty( "类型")
    private String type;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty( "创建时间")
    private LocalDateTime createdTime;

}
